using System.Runtime.Serialization;
using BusinessLogic.BusinessEntity.Interfaces;
using System;

namespace BusinessLogic.Connectivity.Entities
{
	[DataContractAttribute]
	public class DocumentEnvelope : IIdentifiedEntity
	{
		[DataMember]
		public int ID { get; set; }
		[DataMember]
		public string DocXML { get; set; }
		[DataMember]
		public string Signature { get; set; }
		[DataMember]
		public DocumentType DocumentType { get; set; }
		[DataMember]
		public DocumentEnvelopeStatus Status { get; set; }
		[DataMember]
		public string RejectionReason { get; set; }
		[DataMember]
		public int SenderId { get; set; }
		
		/// <summary>
		/// Actually, it's a date of receiving... But at the same time it's a date of sending of the env. from sender to the server. So it's ok.
		/// </summary>
		[DataMember]
		public DateTime SentDate { get; set; }
	}
}